package com.guigu.eduservice.service;

import com.github.pagehelper.PageInfo;
import com.guigu.eduservice.entity.EquipmentReservation;
import com.guigu.eduservice.entity.PurchaseDemand;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.eduservice.vo.EquipmentReservationVo;
import com.guigu.eduservice.vo.PurchaseDemandVo;

import java.util.List;

/**
 * <p>
 * 求购信息表（存储买家发布的二手机械求购需求） 服务类
 * </p>
 *
 * @author janecraft
 * @since 2025-09-27
 */
public interface PurchaseDemandService extends IService<PurchaseDemand> {

    /**
     * 获取求购信息列表
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<PurchaseDemand> getPurchaseDemandPageList(Integer pageNum, Integer pageSize, PurchaseDemandVo vo);
    //根据用户ID查询求购信息，将设备类型塞进去
    List<PurchaseDemand> getPurchaseDemandByUserId(Long userId);

    /**
     * 分配业务员id
     * @param purchaseDemandId
     */
    boolean updatePurchaseDemandByBusinessmanId(Long purchaseDemandId, Long businessmanId);

}
